package com.ruoyi.decision.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 方案库对象 s_plm_rts_template_scheme
 * 
 * @author zbw
 * @date 2022-07-20
 */
public class TemplateScheme extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 方案库ID */
    private String templateid;

    /** 方案库分类ID */
    @Excel(name = "方案库分类ID")
    private String templatetypeid;

    /** 原方案ID */
    @Excel(name = "原方案ID")
    private String schemeid;

    /** 方案XML模板 */
    @Excel(name = "方案XML模板")
    private String templatexml;

    /** 添加时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addtime;

    public void setTemplateid(String templateid) 
    {
        this.templateid = templateid;
    }

    public String getTemplateid() 
    {
        return templateid;
    }
    public void setTemplatetypeid(String templatetypeid) 
    {
        this.templatetypeid = templatetypeid;
    }

    public String getTemplatetypeid() 
    {
        return templatetypeid;
    }
    public void setSchemeid(String schemeid) 
    {
        this.schemeid = schemeid;
    }

    public String getSchemeid() 
    {
        return schemeid;
    }
    public void setTemplatexml(String templatexml) 
    {
        this.templatexml = templatexml;
    }

    public String getTemplatexml() 
    {
        return templatexml;
    }
    public void setAddtime(Date addtime) 
    {
        this.addtime = addtime;
    }

    public Date getAddtime() 
    {
        return addtime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("templateid", getTemplateid())
            .append("templatetypeid", getTemplatetypeid())
            .append("schemeid", getSchemeid())
            .append("templatexml", getTemplatexml())
            .append("addtime", getAddtime())
            .toString();
    }
}
